<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户订单列表</title>
</head>
<script src="/js/jquery/2.0.0/jquery.min.js"></script>
<link href="/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<body>
<table class="table table-striped">
    <thead>
    <th>订单号</th>
    <th>账户</th>
    <th>酒店名字</th>
    <th>房间类型</th>
    <th>入住人数</th>
    <th>入住时间</th>
    <th>退房时间</th>
    <th>订单状态</th>
    <th>支付状态</th>
    <th>房号</th>
    <th>价格</th>
    <th>修改</th>
    </thead>
    <tbody>
    <tr th:each="order: ${orders}" >
        <td th:text="${order.orderId}"></td>
        <td th:text="${order.account}"></td>
        <td th:text="${order.hotelName}"></td>
        <td th:text="${order.roomType}"></td>
        <td th:text="${order.inNumber}"></td>
        <td th:text="${order.inTime}"></td>
        <td th:text="${order.outTime}"></td>
        <td th:text="${order.orderStatus}"></td>
        <td th:text="${order.paymentStatus}"></td>
        <td th:text="${order.roomNumber}"></td>
        <td th:text="${order.price}"></td>
        <form action="/HTML/showOrderForAdmin" method="post" >
            <td class="col-md-1">
                <input type="text" name="orderId" th:value="${order.orderId}" >
                <button  class="btn btn-sm btn-primary " type="submit">修改此订单</button>
            </td>
        </form>
    </tr>
    </tbody>
</table>
<h4 class="text-info"  align="center" style="font-family:宋体;font-weight:bold;" >订单状态为0表示订单未生效，支付状态为0表示未支付</h4>
</body>
</html>